<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('延期申请结果T')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="post-form">
                <div class="select-list">
                    <ul>
                        <li>
                            工单编号：<input type="text" name="workFormNo"/>
                        </li>
                        <li>
                            来源单位：<input type="text" name="adeptName"/>
                        </li>

                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm " id="toolbar" role="group">
            <a class="btn btn-primary single disabled" onclick="$.operate.detailTab('','查看延期申请')">
                <i class="fa fa-edit"></i> 查看
            </a>
            <a class="btn btn-primary single disabled" onclick="$.operate.editTab('','修改延期申请')">
                <i class="fa fa-edit"></i> 修改
            </a>
        </div>

        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "system/mInterior";
    $(function () {
        var options = {
            url: prefix + "/cmnFile/tDeferResultJson",
            sortName: "pkId",
            sortOrder: "desc",
            detailUrl: prefix + "/cmnFile/tDeferChkNView/{id}",
            updateUrl: prefix + "/cmnFile/twfDeferEdit/{id}?act=0",
            uniqueId: "pkId",
            modalName: "延期申请",
            fixedColumns: true,
            fixedNumber: 2,
            fixedRightNumber: 1,
            columns: [
                {field: 'ck', checkbox: true, title: '&nbsp;'},
                {field:'pkId',title:'pkid',visible:false},
                {field:'sendId',title:'SendID',visible:false},
                {field:'wfId',title:'WfId',visible:false},
                {field:'workFormNo',title:'工单编号',align:'center',sortable:true},
                {field:'adeptName',title:'申请单位',align:'center',sortable:true},
                {field:'limitTime',title:'原要求时限',align:'center',sortable:true},
                {field:'delay',title:'延期至',align:'center',sortable:true},
                {field:'delayRn',title:'延期理由',align:'center'},
                {field:'deferState',title:'标记',align:'center',formatter:function(value,row,index){return fmtDeferState(value,row,index);}},
                {field:'chkTime',title:'审核时间',align:'center',sortable:true},
                {
                    title: '操作',
                    align: 'center',
                    formatter: function (value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.pkId + '\',\'查看延期申请\')"><i class="fa fa-edit"></i>查看</a> ');
                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);
    });


</script>
</body>
</html>